package com.icinfo.cloud.provider.punish.api.client.common;

import com.icinfo.cloud.provider.punish.common.electricsent.dto.RealPlaceSentInfoSaveDto;
import com.icinfo.framework.common.web.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 描述：文书送达流程客户端接口
 *
 * @author xiangyuyu
 * @date 2022/6/27 19:06
 */
@FeignClient(value = "${unified-punish-case-provider.namespace:}unified-punish-case-provider", contextId = "DocumentSentFlowClient")
public interface DocumentSentFlowClient {

    /**
     * 【V1.1.0】描述：现场送达状态标记
     *
     * @param saveDto {@link RealPlaceSentInfoSaveDto}
     * @return Result<String> 操作结果
     * @author xiangyuyu
     * @dque 2022-04-24 16:08
     */
    @PostMapping("/punish/common/electric/sent/flow/signRealPlaceSentInfo")
    @ApiOperation(value = "【V1.1.0】描述：现场送达状态标记", httpMethod = "POST")
    Result<String> signRealPlaceSentInfo(@Validated @RequestBody RealPlaceSentInfoSaveDto saveDto);
}
